<template>
  <div class="wrap">
    <input type="text" placeholder="请输昵称" />
    <p class="btn" @click="next">保存</p>
  </div>
</template>
<style lang="scss" scoped>
input {
  border: none;
  border-bottom: 1px solid #e5e5e5;
  width: 8.293333rem;
  margin: 1.066667rem auto;
  outline: none;
  height: 0.8rem;
}
.btn {
  width: 8.16rem;
  height: 1.066667rem;
  margin: 0 auto 0;
  background: #3fd9c9;
  color: #fff;
  font-size: 0.48rem;
  text-align: center;
  line-height: 1.066667rem;
  border-radius: 0.266667rem;
}
</style>

<script>
import { Dialog } from "vant";
export default {
  data() {
      return {}
  },
  methods: {
    next() {
      Dialog.confirm({
        title: "提示",
        message: "确认修改？"
      })
        .then(() => {
          this.$router.go(-1)
        })
        .catch(() => {
           this.$router.go(-1)
        });
    }
  }
};
</script>